raar.image.vector
Class RAGObject

java.lang.Object
  extended byraar.image.vector.RAGObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RAGAgentShape, RAGAgentTrace

public class RAGObject
extends java.lang.Object
implements java.io.Serializable

A graphical vector object based on a world object.

See Also:
Serialized Form

Constructor Summary
RAGObject(RAGObjectSource obj)
          Constructor.
 
Method Summary
static RAGObject createGObject(RAGObjectSource obj)
          Create a graphical vector object based on the world object given.
 java.awt.Color getColor()
          Return the colour for the object.
 RAGObjectSource getObject()
          Get underlying object.
 java.awt.Shape getShape()
          Create a shape for the object.
 boolean isFilled()
          Return whether to fill or draw this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAGObject

public RAGObject(RAGObjectSource obj)
Constructor.

Method Detail

createGObject

public static RAGObject createGObject(RAGObjectSource obj)
Create a graphical vector object based on the world object given.


getObject

public RAGObjectSource getObject()
Get underlying object.


getShape

public java.awt.Shape getShape()
Create a shape for the object.


getColor

public java.awt.Color getColor()
Return the colour for the object.


isFilled

public boolean isFilled()
Return whether to fill or draw this object. Fill by default.